<?php

	class adv_client_model extends st_model {
		protected $_instance  = array(
										  'table'      => 'adv_client', 
										  'primaryKey' => 'id',
									  );
		public function getClientUrl() 
		{
			return site_url('admin/adv/client/edit/id/' . $this->getId(), true);
		}
		
		public function getIndexUrl($param = '') 
		{
			return site_url('admin/adv/client/index/' . $param, true);
		}
		
		public function getName()
		{
			if (!$this->isLoaded()) {
				return null;
			}
			return $this->getFirstName() . ' ' . $this->getLastName();
		}
	}	
?>